﻿<%@ Control Language="C#" AutoEventWireup="true" Codebehind="UserProfile.ascx.cs"
    Inherits="Portal.Administrator.Users.UserProfile" %>
<%@ Register Assembly="System.Web.Extensions" Namespace="System.Web.UI" TagPrefix="asp" %>
<asp:UpdatePanel ID="upanelEditUser" runat="server" UpdateMode="Conditional" RenderMode="Inline">
    <Triggers>
        <asp:AsyncPostBackTrigger ControlID="btnUpdate" EventName="Click" />
    </Triggers>
    <ContentTemplate>
        <table class="content" border="0" cellpadding="0" cellspacing="1" width="100%">
            <tr>
                <td class="header1" colspan="2" align="left">
                    <asp:Label ID="lblCommandName" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td colspan="2" class="header2" height="18">
                    <asp:Label ID="lblUpdateStatus" runat="server" Font-Bold="True" ForeColor="Blue"></asp:Label></td>
            </tr>
            <tr>
                <td class="postheader" align="left" width="25%">Tên truy cập</td>
                <td class="post" align="left" width="75%">
                    <asp:Label ID="lblUsername" runat="server" Font-Bold="True"></asp:Label></td>
            </tr>
            <tr>
                <td colspan="2" class="header2" height="18">
                    Profile Information
                </td>
            </tr>
            <tr>
                <td class="postheader" align="left" width="25%">Tên hiển thị</td>
                <td class="post" align="left" width="75%">
                    <asp:TextBox ID="txtDisplayName" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="postheader" align="left" width="25%">Họ và Tên</td>
                <td class="post" align="left" width="75%">
                    <asp:TextBox ID="txtName" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="postheader" align="left" width="25%">Email</td>
                <td class="post" align="left" width="75%">
                    <asp:TextBox ID="txtEmail" runat="server" ></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtEmail"
                        ErrorMessage="Chưa nhập email"></asp:RequiredFieldValidator></td>
            </tr> 
            <tr>
                <td class="postheader" align="left" width="25%">Điện thoại</td>
                <td class="post" align="left" width="75%">
                    <asp:TextBox ID="txtTel" runat="server" ></asp:TextBox></td>
            </tr>
            <tr>
                <td class="postheader" align="left" width="25%">Di động</td>
                <td class="post" align="left" width="75%">
                    <asp:TextBox ID="txtMobile" runat="server" ></asp:TextBox></td>
            </tr>
            <tr>
                <td class="postheader" align="left" width="25%">Địa chỉ</td>
                <td class="post" align="left" width="75%">
                    <asp:TextBox ID="txtAddress" runat="server" TextMode="MultiLine" Width="305px" Height="60px"></asp:TextBox></td>
            </tr>
            <tr>
                <td colspan="2" class="header2" height="18">
                    Portal Preferences
                </td>
            </tr>
            <tr>
                <td class="postheader" align="left" width="25%">Ngày đăng ký</td>
                <td class="post" align="left" width="75%">
                    <asp:Label ID="lblJoined" runat="server"></asp:Label></td>
            </tr>
            <tr>
                <td class="postheader" align="left" width="25%">Truy cập lần cuối</td>
                <td class="post" align="left" width="75%">
                    <asp:Label ID="lblLastVisited" runat="server"></asp:Label></td>
            </tr>
                <td class="postheader" align="left" width="25%">Múi giờ</td>
                <td class="post" align="left" width="75%">
                    <asp:DropDownList id="TimeZones" runat="server" DataValueField="Value" DataTextField="Name"></asp:DropDownList></td>
            </tr>
            <tr>
                <td class="postheader" align="left" width="25%">Nhận Email thông báo</td>
                <td class="post" align="left" width="75%">
                    <asp:CheckBox ID="PMNotification" runat="server" Checked="true" /></td>                        
            </tr>            
            <tr>
                <td class="postheader" align="left" width="25%">Là SuperAdmin</td>
                <td class="post" align="left" width="75%">
                    <asp:Panel ID="pnlSuperadmin" runat="server" Width="100%" Visible="false">
                        <asp:CheckBox ID="chkIsSuperAdmin" runat="server" />
                    </asp:Panel></td>
            </tr> 
            <tr>
                <td class="postheader" align="left" width="25%">Cổng</td>
                <td class="post" align="left" width="75%">
                    <asp:ListBox ID="lstPortal" Style="height: 150px; width: 180px;" runat="server" SelectionMode="Multiple">
                    </asp:ListBox></td>
            </tr>                    
            <tr>
                <td class="postfooter" colspan="2" valign="middle" align="center">
                    <Button:Update ID="btnUpdate" runat="server" CssClass="pbutton" OnClick="btnUpdate_Click"
                        Text="Cập  nhật" />
                    <Button:View ID="btnManagePassword" runat="server" CssClass="pbutton" OnClick="btnManagePassword_Click"
                        Text="Mật khẩu" />
                    <asp:Button ID="btnCancel" runat="server" CssClass="pbutton" Text="Quay lại" Width="84px"
                        OnClientClick ="history.back()"/></td>
            </tr>            
        </table>
    </ContentTemplate>
</asp:UpdatePanel>
&nbsp;

